<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<s:include value="/commun/header.jsp" />

<ul>
<s:iterator value="projets" status="status">
<li>
	<s:url id="consult" action="consultProjet"><s:param name="projet.id" value="id"/></s:url>
	<s:a href="%{consult}">	<s:property value="nom"/></s:a>
	<s:if test="%{#session.role=='admin' || (#session.role=='agent' && #session.rid==projet.chef.id)}">
	<s:url id="update" action="setUpForInsertOrUpdateProjet"><s:param name="projet.id" value="id"/></s:url>
		<s:a href="%{update}">Modifier</s:a>
	<s:url id="deleteProjet" action="deleteProjet"><s:param name="projet.id" value="id"/></s:url><s:a href="%{deleteProjet}">Supprimer</s:a>
	</s:if>
</li>
</s:iterator>


</ul>



<s:include value="/commun/footer.jsp" />